package org.tag.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by helinchong on 2017/5/15.
 */
public class LoginDateTag extends TagSupport{
    @Override
    public int doStartTag() throws JspException {
        SimpleDateFormat sdf = new SimpleDateFormat();
        String now = sdf.format(new Date());
        try {
            if(1==1){
                pageContext.getOut().print("hidden");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return super.doStartTag();
    }
}
